/******************************************************************************
* File description: MaintenanceYingGuang2KongWeiJianCe.qml
* Function: 维护-荧光检测：孔位检测位置校正
* Current Version: 1.0.0
* Author: 张宇轩
* Date: 2024-08-29
*  -----
*  Copyright by 博坤生物 .
 *****************************************************************************/
import QtQuick 2.14
import QtQuick.Controls 2.14
import QtQuick.Layouts 1.14

Item {
    id: root

    /* property 定义开始 */

    /* property 定义结束 */

    ColumnLayout {
        id: containerLayout
        anchors {
            fill: parent
            topMargin: 16
            bottomMargin: 16
        }
        spacing: 16

        // 按钮
        RowLayout {
            id: btnContainerLayout
            Layout.fillWidth: true
            Layout.preferredHeight: 40
            Layout.rightMargin: 16

            CustomHorSpacerItem {}

            // 读取
            PureButton {
                id: readOutBtn
                Layout.preferredWidth: 120
                Layout.preferredHeight: 40
                pureBtnWidth: 120
                pureBtnColor: "#FF2F42CD"
                pureHoveredColor: "#FF2F42CD"
                pureLabelColor: "#FFFFFFFF"
                pureFontHoveredColor: "#FFFFFFFF"
                pureBtnBorderColor: "transparent"
                pureText: "读取"
                disabledPureBtnColor: "#FFF5F5F5"
                disabledPureBtnBorderColor: "#FFD9D9D9"
                disabledPureLabelColor: "#FFBFBFBF"
                // 关闭过渡效果
                isTransition: false
            }

            // 写入
            PureButton {
                id: writeInBtn
                Layout.preferredWidth: 120
                Layout.preferredHeight: 40
                pureBtnWidth: 120
                pureBtnColor: "#FF2F42CD"
                pureHoveredColor: "#FF2F42CD"
                pureLabelColor: "#FFFFFFFF"
                pureFontHoveredColor: "#FFFFFFFF"
                pureBtnBorderColor: "transparent"
                pureText: "写入"
                disabledPureBtnColor: "#FFF5F5F5"
                disabledPureBtnBorderColor: "#FFD9D9D9"
                disabledPureLabelColor: "#FFBFBFBF"
                // 关闭过渡效果
                isTransition: false
            }

            // 运动
            PureButton {
                id: yunDongBtn
                Layout.preferredWidth: 120
                Layout.preferredHeight: 40
                pureBtnWidth: 120
                pureBtnColor: "#FF2F42CD"
                pureHoveredColor: "#FF2F42CD"
                pureLabelColor: "#FFFFFFFF"
                pureFontHoveredColor: "#FFFFFFFF"
                pureBtnBorderColor: "transparent"
                pureText: "运动"
                disabledPureBtnColor: "#FFF5F5F5"
                disabledPureBtnBorderColor: "#FFD9D9D9"
                disabledPureLabelColor: "#FFBFBFBF"
                // 关闭过渡效果
                isTransition: false
            }

            // 复位
            PureButton {
                id: resetBtn
                Layout.preferredWidth: 120
                Layout.preferredHeight: 40
                pureBtnWidth: 120
                pureBtnColor: "#FF2F42CD"
                pureHoveredColor: "#FF2F42CD"
                pureLabelColor: "#FFFFFFFF"
                pureFontHoveredColor: "#FFFFFFFF"
                pureBtnBorderColor: "transparent"
                pureText: "复位"
                disabledPureBtnColor: "#FFF5F5F5"
                disabledPureBtnBorderColor: "#FFD9D9D9"
                disabledPureLabelColor: "#FFBFBFBF"
                // 关闭过渡效果
                isTransition: false
            }
        }

        // 表格
        MaintenanceYingGuang2KongWeiJianCeTable {
            id: kongWeiJianCeTable
            Layout.fillWidth: true
            Layout.fillHeight: true
        }

        // 分割线
        Rectangle {
            Layout.fillWidth: true
            Layout.preferredHeight: 2
            border.width: 0
            color: "#FFE6E6E6"
        }

        // 润脂
        RowLayout {
            id: runZhiContainerLayout
            Layout.fillWidth: true
            Layout.preferredHeight: 40
            Layout.rightMargin: 16
            Layout.leftMargin: 16
            spacing: 8

            // 速度
            LabelComboBox {
                id: runZhiSpeed
                Layout.fillWidth: true
                Layout.preferredHeight: 40
                comboBoxWidth: width
                comboBoxHeight: height
                model: ["高", "中", "低"]
                comboBoxText: "速度"
            }

            // 次数
            LabelTextInput {
                id: runZhiCiShu
                Layout.fillWidth: true
                Layout.preferredHeight: 40
                inputWidth: width
                inputHeight: height
                labelText: "次数"
            }

            // 润脂测试
            PureButton {
                id: runZhiTestBtn
                Layout.preferredWidth: 120
                Layout.preferredHeight: 40
                pureBtnWidth: width
                pureBtnColor: "#FF2F42CD"
                pureHoveredColor: "#FF2F42CD"
                pureLabelColor: "#FFFFFFFF"
                pureFontHoveredColor: "#FFFFFFFF"
                pureBtnBorderColor: "transparent"
                pureText: "润脂测试"
                disabledPureBtnColor: "#FFF5F5F5"
                disabledPureBtnBorderColor: "#FFD9D9D9"
                disabledPureLabelColor: "#FFBFBFBF"
                // 关闭过渡效果
                isTransition: false
            }

            // 停止润脂
            PureButton {
                id: stopRunZhiBtn
                isEnable: false
                Layout.preferredWidth: 120
                Layout.preferredHeight: 40
                pureBtnWidth: width
                pureBtnColor: "#FF2F42CD"
                pureHoveredColor: "#FF2F42CD"
                pureLabelColor: "#FFFFFFFF"
                pureFontHoveredColor: "#FFFFFFFF"
                pureBtnBorderColor: "transparent"
                pureText: "停止润脂"
                disabledPureBtnColor: "#FFF5F5F5"
                disabledPureBtnBorderColor: "#FFD9D9D9"
                disabledPureLabelColor: "#FFBFBFBF"
                // 关闭过渡效果
                isTransition: false
            }
        }
    }
}
